.class public Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;


# instance fields
.field private a:Landroid/content/Context;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Lcom/baidu/mapapi/map/MapView;

.field private f:Lcom/baidu/mapapi/map/BaiduMap;

.field private g:Ljava/util/List;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;)Lcom/baidu/mapapi/map/BaiduMap;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    return-object v0
.end method

.method private a()V
    .locals 8

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "visit"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "customer"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    :try_start_0
    new-instance v1, Lcom/baidu/mapapi/model/LatLng;

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    aget-object v3, v3, v4

    invoke-static {v3}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x1

    aget-object v0, v0, v3

    invoke-static {v0}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v6

    invoke-direct {v1, v4, v5, v6, v7}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iget-wide v4, v1, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v0, v1, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    const/4 v3, 0x2

    invoke-static {v4, v5, v0, v1, v3}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v3, Lcom/baidu/mapapi/model/LatLng;

    const/4 v1, 0x0

    aget-wide v4, v0, v1

    const/4 v1, 0x1

    aget-wide v0, v0, v1

    invoke-direct {v3, v4, v5, v0, v1}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0302aa

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v4}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    const v0, 0x7f0c0d3b

    invoke-virtual {v4, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f0c0d3c

    invoke-virtual {v4, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const v5, 0x7f080832

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v5, 0x7f080832

    invoke-virtual {p0, v5}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f020406

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setBackgroundResource(I)V

    invoke-static {v4}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromView(Landroid/view/View;)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {v1, v3}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->draggable(Z)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->title(Ljava/lang/String;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->zIndex(I)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->g:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    :cond_0
    :goto_0
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    :try_start_1
    new-instance v0, Lcom/baidu/mapapi/model/LatLng;

    const-string/jumbo v1, ","

    invoke-virtual {v2, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    const/4 v3, 0x0

    aget-object v1, v1, v3

    invoke-static {v1}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v4

    const-string/jumbo v1, ","

    invoke-virtual {v2, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    aget-object v1, v1, v2

    invoke-static {v1}, Ljava/lang/Double;->parseDouble(Ljava/lang/String;)D

    move-result-wide v2

    invoke-direct {v0, v4, v5, v2, v3}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    iget-wide v2, v0, Lcom/baidu/mapapi/model/LatLng;->latitude:D

    iget-wide v0, v0, Lcom/baidu/mapapi/model/LatLng;->longitude:D

    const/4 v4, 0x2

    invoke-static {v2, v3, v0, v1, v4}, Lcom/waiqin365/compons/c/m;->a(DDI)[D

    move-result-object v0

    new-instance v2, Lcom/baidu/mapapi/model/LatLng;

    const/4 v1, 0x0

    aget-wide v4, v0, v1

    const/4 v1, 0x1

    aget-wide v0, v0, v1

    invoke-direct {v2, v4, v5, v0, v1}, Lcom/baidu/mapapi/model/LatLng;-><init>(DD)V

    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0302aa

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    const v0, 0x7f0c0d3b

    invoke-virtual {v3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f0c0d3c

    invoke-virtual {v3, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v4

    const-string/jumbo v5, "customerName"

    invoke-virtual {v4, v5}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v4

    const-string/jumbo v5, "customerName"

    invoke-virtual {v4, v5}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f020405

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setBackgroundResource(I)V

    invoke-static {v3}, Lcom/baidu/mapapi/map/BitmapDescriptorFactory;->fromView(Landroid/view/View;)Lcom/baidu/mapapi/map/BitmapDescriptor;

    move-result-object v0

    new-instance v1, Lcom/baidu/mapapi/map/MarkerOptions;

    invoke-direct {v1}, Lcom/baidu/mapapi/map/MarkerOptions;-><init>()V

    invoke-virtual {v1, v2}, Lcom/baidu/mapapi/map/MarkerOptions;->position(Lcom/baidu/mapapi/model/LatLng;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/MarkerOptions;->icon(Lcom/baidu/mapapi/map/BitmapDescriptor;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->draggable(Z)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->title(Ljava/lang/String;)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/MarkerOptions;->zIndex(I)Lcom/baidu/mapapi/map/MarkerOptions;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->g:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :cond_1
    :goto_1
    return-void

    :catch_0
    move-exception v0

    goto :goto_1

    :catch_1
    move-exception v0

    goto/16 :goto_0
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->g:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    const/4 v3, 0x1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    iput-object p0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->a:Landroid/content/Context;

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030282

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->setContentView(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->g:Ljava/util/List;

    const v0, 0x7f0c0c4f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->b:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gk;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gk;-><init>(Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c51

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->c:Landroid/widget/TextView;

    const v1, 0x7f080832

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0c4b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->d:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->d:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "tip"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0ba7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/map/MapView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->getMap()Lcom/baidu/mapapi/map/BaiduMap;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0, v3}, Lcom/baidu/mapapi/map/BaiduMap;->setMapType(I)V

    const/high16 v0, 0x41600000    # 14.0f

    invoke-static {v0}, Lcom/baidu/mapapi/map/MapStatusUpdateFactory;->zoomTo(F)Lcom/baidu/mapapi/map/MapStatusUpdate;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v1, v0}, Lcom/baidu/mapapi/map/BaiduMap;->setMapStatus(Lcom/baidu/mapapi/map/MapStatusUpdate;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/BaiduMap;->getUiSettings()Lcom/baidu/mapapi/map/UiSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/baidu/mapapi/map/UiSettings;->setZoomGesturesEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->setMyLocationEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0, v3}, Lcom/baidu/mapapi/map/MapView;->showScaleControl(Z)V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->a()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->f:Lcom/baidu/mapapi/map/BaiduMap;

    new-instance v1, Lcom/waiqin365/lightapp/visit/gl;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/visit/gl;-><init>(Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;)V

    invoke-virtual {v0, v1}, Lcom/baidu/mapapi/map/BaiduMap;->setOnMapLoadedCallback(Lcom/baidu/mapapi/map/BaiduMap$OnMapLoadedCallback;)V

    :cond_0
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onDestroy()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method protected onPause()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onPause()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onPause()V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/VisitCustomerMapActivity;->e:Lcom/baidu/mapapi/map/MapView;

    invoke-virtual {v0}, Lcom/baidu/mapapi/map/MapView;->onResume()V

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onResume()V

    return-void
.end method
